﻿<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
    <head>
        <meta charset="utf-8" />
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimal-ui">
        <title>Zinzer - Responsive Bootstrap 4 Admin Dashboard</title>
        <meta content="Admin Dashboard" name="description" />
        <meta content="ThemeDesign" name="author" />
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />

        <link rel="shortcut icon" href="././static/images/favicon.ico">

        <!-- DataTables -->
        <link href="././static/datatables/dataTables.bootstrap4.min.css" rel="stylesheet" type="text/css" />
        <link href="././static/datatables/buttons.bootstrap4.min.css" rel="stylesheet" type="text/css" />

        <!-- Responsive datatable examples -->
        <link href="././static/datatables/responsive.bootstrap4.min.css" rel="stylesheet" type="text/css" />

        <link href="././static/css/bootstrap.min.css" rel="stylesheet" type="text/css">
        <link href="././static/css/icons.css" rel="stylesheet" type="text/css">
        <link href="././static/css/style.css" rel="stylesheet" type="text/css">


    </head>


    <body class="fixed-left">

        <!-- Loader -->
        <div id="preloader">
            <div id="status">
                <div class="spinner">
                    <div class="rect1"></div>
                    <div class="rect2"></div>
                    <div class="rect3"></div>
                    <div class="rect4"></div>
                    <div class="rect5"></div>
                </div>
            </div>
        </div>

        <!-- Begin page -->
        <div id="wrapper">

            <!-- ========== Left Sidebar Start ========== -->
            <div class="left side-menu">
                <button type="button" class="button-menu-mobile button-menu-mobile-topbar open-left waves-effect">
                    <i class="mdi mdi-close"></i>
                </button>

                <div class="left-side-logo d-block d-lg-none">
                    <div class="text-center">
                        
                        <a href="index.html" class="logo"><img src="././static/images/logo_dark.png" height="20" alt="logo"></a>
                    </div>
                </div>

                <div class="sidebar-inner slimscrollleft">
                    
                    <div th:insert="~{homepage::siderbar}"></div>
                    <div class="clearfix"></div>
                </div> <!-- end sidebarinner -->
            </div>
            <!-- Left Sidebar End -->

            <!-- Start right Content here -->

            <div class="content-page">
                <!-- Start content -->
                <div class="content">

                    <!-- Top Bar Start -->
                    <div th:insert="~{homepage::topbar}"></div>
                    <!-- Top Bar End -->

                    <div class="page-content-wrapper ">

                        <div class="container-fluid">

                            <div class="row">
                                <div class="col-sm-12">
                                    <div class="page-title-box">
                                        <div class="row align-items-center">
                                            <div class="col-md-8">
                                                <h4 class="page-title m-0">Datatable</h4>
                                            </div>
                                            <div class="col-md-4">
                                                <div class="float-right d-none d-md-block">
                                                    <div class="dropdown">
                                                        <button class="btn btn-primary dropdown-toggle" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                                                            <i class="ti-settings mr-1"></i> Settings
                                                        </button>
                                                        <div class="dropdown-menu dropdown-menu-right dropdown-menu-animated">
                                                            <a class="dropdown-item" href="#">Action</a>
                                                            <a class="dropdown-item" href="#">Another action</a>
                                                            <a class="dropdown-item" href="#">Something else here</a>
                                                            <div class="dropdown-divider"></div>
                                                            <a class="dropdown-item" href="#">Separated link</a>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                            <!-- end col -->
                                        </div>
                                        <!-- end row -->
                                    </div>
                                    <!-- end page-title-box -->
                                </div>
                            </div> 
                            <!-- end page title -->

                            <div class="row">
                                <div class="col-12">
                                    <div class="card m-b-30">
                                        <div class="card-body">
            
                                            <h4 class="mt-0 header-title">商品 / 更改</h4>
                                            <form class="form-horizontal" th:action="@{/updateGood}" method="post">
                                                <input type="hidden" name="id" th:value="${good.getId()}">
                                                <div class="form-group">
                                                    <label for="inputName3" class="col-sm-2 control-label">品牌名</label>
                                                    <div class="col-sm-10">
                                                        <input type="text" name="brandName" class="form-control" id="inputName3" th:value="${good.getBrandName()}">
                                                    </div>
                                                </div>
                                                <div class="form-group">
                                                    <label for="inputGoodName" class="col-sm-2 control-label">产品名</label>
                                                    <div class="col-sm-10">
                                                        <input type="text" class="form-control" name="goodName" id="inputGoodName" th:value="${good.getGoodName()}" >
                                                    </div>
                                                </div>
                                                <div class="form-group">
                                                    <label for="inputNumber" class="col-sm-2 control-label">数量</label>
                                                    <div class="col-sm-10">
                                                        <input type="text" class="form-control" name="number" id="inputNumber" th:value="${good.getNumber()}" >
                                                    </div>
                                                </div>
                                                <div class="form-group">
                                                    <label for="inputIncome" class="col-sm-2 control-label">总金额</label>
                                                    <div class="col-sm-10">
                                                        <input type="text" class="form-control" name="income" id="inputIncome" th:value="${good.getIncome()}" >
                                                    </div>
                                                </div>

                                                <div class="form-group">
                                                    <br>
                                                    <div class="col-sm-offset-2 col-sm-10">
                                                        <button type="submit" class="btn btn-primary">修改</button>
                                                    </div>
                                                </div>
                                            </form>
            

            
                                        </div>
                                    </div>
                                </div> <!-- end col -->
                            </div> <!-- end row -->


                        </div><!-- container fluid -->

                    </div> <!-- Page content Wrapper -->

                </div> <!-- content -->

                <footer class="footer">
                    © 2019 Zinzer <span class="d-none d-md-inline-block"> - Crafted with <i class="mdi mdi-heart text-danger"></i> By <a href="http://www.bootstrapmb.com/">bootstrapmb</a></span>
                </footer>

            </div>
            <!-- End Right content here -->

        </div>
        <!-- END wrapper -->


        <!-- jQuery  -->
        <script src="././static/js/jquery.min.js"></script>
        <script src="././static/js/bootstrap.bundle.min.js"></script>
        <script src="././static/js/modernizr.min.js"></script>
        <script src="././static/js/detect.js"></script>
        <script src="././static/js/fastclick.js"></script>
        <script src="././static/js/jquery.slimscroll.js"></script>
        <script src="././static/js/jquery.blockUI.js"></script>
        <script src="././static/js/waves.js"></script>
        <script src="././static/js/jquery.nicescroll.js"></script>
        <script src="././static/js/jquery.scrollTo.min.js"></script>

        <!-- Required datatable js -->
        <script src="././static/datatables/jquery.dataTables.min.js"></script>
        <script src="././static/datatables/dataTables.bootstrap4.min.js"></script>
        <!-- Buttons examples -->
        <script src="././static/datatables/dataTables.buttons.min.js"></script>
        <script src="././static/datatables/buttons.bootstrap4.min.js"></script>
        <script src="././static/datatables/jszip.min.js"></script>
        <script src="././static/datatables/pdfmake.min.js"></script>
        <script src="././static/datatables/vfs_fonts.js"></script>
        <script src="././static/datatables/buttons.html5.min.js"></script>
        <script src="././static/datatables/buttons.print.min.js"></script>
        <script src="././static/datatables/buttons.colVis.min.js"></script>
        <!-- Responsive examples -->
        <script src="././static/datatables/dataTables.responsive.min.js"></script>
        <script src="././static/datatables/responsive.bootstrap4.min.js"></script>

        <!-- Datatable init js -->
        <script src="././static/pages/datatables.init.js"></script>        

        <!-- App js -->
        <script src="././static/js/app.js"></script>

    </body>
</html>